package domainLogic;

import helperClasses.Book;
import helperClasses.ClassInfo;
import helperClasses.Member;

import java.util.Vector;

import database.Database;

public interface DomainLogic
{
	Database database = null;
	
	void editProfile(Member member);
	
	void registerAccount(Member member);
	
	void deleteAccount(Member member);
	
	boolean isMember(String name, String password);
	
	void logout();
	
	void postBook(Book book);
	
	void cancelPost(Book book);
	
	Vector<Vector<Object>> searchBooks(String search);
	
	String buyBook(Book book);
	
	void addCourse(ClassInfo cla);
	
	void deleteCourse(ClassInfo cla);
	
	void setCurrentMember(Member member);
	
	Member getCurrentMember();
	
	void resetCurrentMember();
	
	void close();
	
	boolean isAdmin();
	
	Vector<Vector<Object>> getUserList(String name);
	
	Vector<Vector<Object>> getBookList(String name);
}
